package org.jeecg.modules.baseData.service.impl;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.baseData.entity.WuLianWangKa;
import org.jeecg.modules.baseData.mapper.WuLianWangKaMapper;
import org.jeecg.modules.baseData.service.IWuLianWangKaService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;



/**
 * @Description: 物联网卡管理
 * @Author: wangfupeng
 * @Date:   2021-02-02
 * @Version: V1.0
 */
@Service
public class WuLianWangKaServiceImpl extends ServiceImpl<WuLianWangKaMapper, WuLianWangKa> implements IWuLianWangKaService {


    @Override
    public WuLianWangKa getOneByNo(String no) {
        QueryWrapper<WuLianWangKa> tbWuLianWangKaQueryWrapper = new QueryWrapper<>();
        tbWuLianWangKaQueryWrapper.lambda()
                .eq(WuLianWangKa::getIccid,no)
                .last("limit 1");
      return   this.getOne(tbWuLianWangKaQueryWrapper);
    }
}
